package jvm.t1;

import java.util.ArrayList;
import java.util.List;

/**
 * Remarks:
 * Class name :Demo1_5
 * Date :2023/2/8 16:49
 * Author:杨俊源
 */
public class Demo1_5 {
    public static void main(String[] args) {
        int i = 0;
        try {
           List<String> list = new ArrayList<>();
            String a = "hello";
            while (true){
                list.add(a);
                a = a + a;
                i++;
                System.out.println(list);
            }

        }catch (Throwable e){
            e.printStackTrace();
            System.out.println(i);
        }
    }
}
